#main

num = 123
str = "hello "
key = "f3"

echo "some string".length

str = trim(str)

echo str // Hello

str.byte_copy(2)
str.copy(0, length: 3)

arr = [
	'f1': 123,
	"f2": "hi",
	"f3": "字符串",
	"sub": [1, 2, 3]
]

// 字符串（执行表达式）
echo "${str concat 'abc'} world" // hello world
echo '$str\n
	- ${arr['f1']}
	- ${arr[key]}
'

// 纯字符串（不执行表达式）
echo #text "$str world" // $str world
echo #text '
	- ${arr[\'f1\']}
	- ${arr[key]}
'

// 声明变量并赋值
abc = 'hhh'

var1 = <div>${'<script>'}</div>

'string${abc}';
"string${abc}"
'string#{abc}';

#text 'string${abc}';
#text "string${abc}"

#"string${abc}\n"
#'string'
#('string<br>' concat abc)

'A${abc}BC\n'

// 声明变量及其类型并赋值
var v_10 String = "sth."
var v_11 = 123

// 声明变量及其类型，然后赋值
var v_20 String
v_21 = "sth."
